//
//  DIYHomeCell.m
//  BigJoy
//
//  Created by Rowling on 2017/6/30.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "DIYHomeCell.h"

@interface DIYHomeCell()
@property (weak, nonatomic) IBOutlet UIView *listView;
@property (weak, nonatomic) IBOutlet UIButton *addButton;

@end

@implementation DIYHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
//    self.imageView.layer.cornerRadius = 10;
//    self.imageView.layer.masksToBounds = YES;
    self.layer.shadowColor = XMColor(150, 150, 150).CGColor;
    self.layer.shadowOpacity = 0.3;
    self.layer.shadowOffset = CGSizeMake(0, 6);
    self.layer.masksToBounds = NO;
    self.contentView.layer.cornerRadius = 10;
    self.contentView.layer.masksToBounds = YES;
    
}

-(void)setIsList:(BOOL)isList {
    _isList = isList;
    if (!self.isList) {
        self.addButton.hidden = YES;
        self.listView.hidden = YES;
    }else {
        self.addButton.hidden = NO;
        self.listView.hidden = NO;
    }
}


@end
